.banner {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.img {
  object-fit: cover;
  width: 100%;
  height: 100%;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.caption {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 2;
  color: var(--white);
}

.heading {
  margin: 0;
  font-size: 36px;
  font-weight: 900;
}

.description {
  font-size: 16px;
  line-height: 24px;
  margin: 0 0 14px;
}

@media all and (max-width: 992px) {
  .banner {
    overflow: hidden;
  }

  .img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
  }

  .heading {
    font-size: 26px;
    line-height: 31px;
  }
}
